package com.ryskoo.catering.producttemplateattr.service;

import com.ryskoo.catering.producttemplateattr.domain.ProductTemplateAttrPO;
import com.ryskoo.catering.producttemplateattr.repository.IProductTemplateAttrRepository;
import com.ryskoo.framework.core.service.BasicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

@Service
@Transactional
public class ProductTemplateAttrServiceImpl extends BasicServiceImpl<ProductTemplateAttrPO> implements IProductTemplateAttrService{

    @Autowired
    private IProductTemplateAttrRepository productTemplateAttrRepository;

    @PostConstruct
    public void init(){
        this.setDao(productTemplateAttrRepository);
    }
}
